﻿using KinonekoSoftware.CodariaDB;

namespace KinonekoSoftware.Studio.Resources.Converters
{
    public sealed class TeamTypeConverter : IValueConverter
    {

        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var t = (TeamType)(value is int type ? type : 0);

            return LanguageManager.GetEnum(t);
        }
        
        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotSupportedException();
        }
    }
}